package com.xhwl.logistics.entity.logistics;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 物流车预约
 * </p>
 *
 * @author lin.yang
 * @since 2023-12-06
 */
@Data
@TableName("logistics_visitor_record_request")
@ApiModel(value="VisitorRecord对象", description="物流车预约")
public class VisitorRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type= IdType.AUTO)
    private Integer id;


    @ApiModelProperty(value = "司机姓名")
    private String driverName;

    @ApiModelProperty(value = "发起人")
    private String promoter;


    @ApiModelProperty(value = "证件类型")
    private Integer cardType;

    @ApiModelProperty(value = "证件号码")
    private String idCard;

    @ApiModelProperty(value = "访客电话")
    private String telephone;

    @ApiModelProperty(value = "运送物品照片url")
    private String materialPicUrl;

    @ApiModelProperty(value = "运送物品说明")
    private String materialDescription;

    @ApiModelProperty(value = "人脸照片地址")
    private String faceUrl;

    @ApiModelProperty(value = "车牌号码")
    private String plateNo;


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "有效时间开始时间")
    private Date availableStartDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "有效时间结束时间")
    private Date availableEndDate;

    @ApiModelProperty(value = "访客状态（0、待审批   1、已到访  2、通过  3、未通过 4、已过期  5、取消）")
    private Integer status;

    @ApiModelProperty(value = "操作人员账号")
    private String operateUserLoginName;

    @ApiModelProperty(value = "操作人员姓名")
    private String operateUserName;

    @ApiModelProperty(value = "操作时间")
    private Date operateDate;

    @ApiModelProperty(value = "关联流程id")
    private Integer flowId;

    @ApiModelProperty(value = "流程名称")
    private String flowName;

    @ApiModelProperty(value = "审批意见")
    private String approvalDescription;

    @ApiModelProperty(value = "审批时间")
    private Date approvalDate;


}
